package com.edais.dao;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

import com.edais.domain.Bank;
import com.edais.domain.zftPay.PayParamtersTemp;
import com.edais.persistence.PayMapper;

@Repository

public class PayDao {
	@Autowired
	private PayMapper payMapper;

	/**
	 * 支付临时参数保存 
	 */
	public void addPayParameter(PayParamtersTemp paramtersMap) throws Exception {
		payMapper.addPayParameter(paramtersMap);
	}
	
	/**
	 * 获取支付临时参数
	 */
	public PayParamtersTemp getPayParameter(Map<String, String> map) throws Exception {
		return payMapper.getPayParameter(map);
	}
	
	/**
	 * 根据选择的银行卡选择对应的支付平台
	 */
	public Bank getPayPlatformById(Map<String, String> map) throws Exception {
		return payMapper.getPayPlatformById(map);
	}
}
